import { GET } from '../../request';

/**
 * 获取比价全部分类
 * @param params
 * @returns
 */
export const getAllCate = (): Promise<any> => {
  return GET('/api/category');
};
/**
 * 获取某个分类下的列表
 * @param params
 * @returns
 */
export const getCateDetailList = (params: any): Promise<any> => {
  return GET('/api/category_products', { ...params });
};

/**
 * 获取比价榜单
 * @param params
 * @returns
 */
export const getContrastTop = (params: any): Promise<any> => {
  return GET('/api/top_product', params);
};

/**
 * 获取比价商品门店列表
 * @param params
 * @returns
 */
export const getContrastShopList = (params: any): Promise<any> => {
  return GET('/api/products', params);
};
